import requests

URL = [
    "https://img3.doubanio.com/view/photo/l/public/p2551494896.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494892.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494887.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494881.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494877.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494873.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494868.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494865.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494864.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494860.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494858.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494856.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494851.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494841.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494835.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494831.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494828.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494826.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494822.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494821.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494819.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494818.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494817.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494814.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494811.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494810.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494808.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494807.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494805.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494802.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494800.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494799.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494798.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494797.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494794.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494793.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494790.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494788.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494786.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494784.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494783.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494782.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494780.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494776.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494771.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494768.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494764.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494762.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494760.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494758.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494757.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494755.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494754.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494753.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494752.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494751.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494750.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494747.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494746.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494745.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494742.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494741.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494740.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494738.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494737.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494736.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494734.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494733.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494732.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494729.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494727.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494726.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494724.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494722.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494721.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494719.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494718.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494716.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494714.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494713.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494689.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494688.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494686.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494683.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494681.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494680.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494679.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494678.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494674.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494670.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494666.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494663.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494660.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494657.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494656.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494654.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494652.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494651.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494650.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494649.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494648.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494647.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494646.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494645.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494638.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494634.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494633.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494632.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494630.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494627.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494625.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494623.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494622.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494618.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494617.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494616.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494615.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494613.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494610.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494607.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494605.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494602.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494601.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494599.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494598.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494597.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494595.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494594.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494592.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494591.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494590.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494588.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494586.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494585.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494584.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494581.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494580.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494579.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494576.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494574.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494571.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494569.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494567.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494566.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494565.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494563.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494562.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494558.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494555.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494553.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494552.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494548.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494545.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494543.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494539.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494534.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494532.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494531.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494527.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494524.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494522.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494521.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494519.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494516.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494515.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494513.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494511.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494508.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494507.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494506.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494503.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494500.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494491.jpg",
    "https://img1.doubanio.com/view/photo/l/public/p2551494488.jpg",
    "https://img3.doubanio.com/view/photo/l/public/p2551494486.jpg"
]

headers = {
    'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36',
}

for img in URL:
    res = requests.get(url=img, headers=headers).content

    filename = img.split('/')[-1]

    try:
        with open('/Users/mac/Documents/nogizaka/magazine/hiding_nogi_member1/' + filename, 'wb') as f_obj:
            f_obj.write(res)
    except Exception as e:
        print(e)
    else:
        print('下载成功！' + filename)
